package com.atguigu.gulimall.seckill.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

/**
 * @author: xuesm
 * @date: 2025/3/14 22:19
 */
@Slf4j
@Component
@EnableAsync
@EnableScheduling
public class HelloSchedule {
//    @Async
//    @Scheduled(cron = "* * * * * ?")
    public void hello(){
        log.info("hello...");
    }
}
